import Vue from "vue";
import VueRouter from 'vue-router'
import Brand from "@/Brand";
import LeYou from "@/LeYou";
import Category from "@/Category";
import Scene from "../Scene";
import Age from "../Age";
import column from "../column";
import LeYouLogin from "@/LeYouLogin";
import leyouindex from "../leyouindex";
import AddItem from "../AddItem";
import Item from "../Item";
import Topic from "../Topic";
import cc from "../AddTopic";
import AddTopic from "../AddTopic";
import recovery from "../Recovery";
import Tryout from "../Tryout";
import Seckill from "../Seckill";
import promotion from "../promotion";
import AddPromotion from "../AddPromotion";
Vue.use(VueRouter)
const routes = [
    {path: '/', component: LeYou},
    {
        path: '/', component: LeYou,
        children: [
            {path: 'Brand', component: Brand},
            {path: 'Category', component: Category},
            {path: 'Scene', component: Scene},
            {path: 'Age', component: Age},
            {path: 'column', component: column},
            {path: 'AddItem', component: AddItem},
            {path: 'Item', component: Item},
            {path: 'Topic', component: Topic},
            {path: 'AddTopic', component: AddTopic},
            {path: 'Recovery', component: recovery},
            {path: 'Tryout', component: Tryout},
            {path: 'Seckill', component: Seckill},
            {path: 'promotion', component: promotion},
            {path: 'AddPromotion', component: AddPromotion}
        ]
    },
    {path: '/leyou', component: LeYou},

]
const router = new VueRouter({routes})
export default router
